package com.gxa.p2p.pojo;

import lombok.ToString;

import java.io.Serializable;

/**
 * 借款申请
 */
@ToString
public class LoanApplication implements Serializable {

    private static final long serialVersionUID = -3881227345092416830L;
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 借款金额
     */
    private Double loanAmount;
    /**
     * 借款利率
     */
    private Double loanRate;
    /**
     * 还款周期
     */
    private String repaymentPeriod;
    /**
     * 还款模式
     */
    private String repaymentMode;
    /**
     * 最小标额
     */
    private Double minBid;
    /**
     * 招标周期
     */
    private String biddingDays;
    /**
     * 借款标题
     */
    private String loanTitle;
    /**
     * 借款描述
     */
    private String loanDesc;
    /**
     * 审核状态
     */
    private Integer reviewStatus;
    /**
     * 审核备注
     */
    private String reviewNote;

    public LoanApplication(Integer id, Integer userId, Double loanAmount, Double loanRate, String repaymentPeriod, String repaymentMode, Double minBid, String biddingDays, String loanTitle, String loanDesc,Integer reviewStatus,String reviewNote) {
        this.id = id;
        this.userId = userId;
        this.loanAmount = loanAmount;
        this.loanRate = loanRate;
        this.repaymentPeriod = repaymentPeriod;
        this.repaymentMode = repaymentMode;
        this.minBid = minBid;
        this.biddingDays = biddingDays;
        this.loanTitle = loanTitle;
        this.loanDesc = loanDesc;
        this.reviewStatus = reviewStatus;
        this.reviewNote = reviewNote;
    }

    public LoanApplication() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getLoanAmount() {
        return loanAmount;
    }

    public void setLoanAmount(Double loanAmount) {
        this.loanAmount = loanAmount;
    }

    public Double getLoanRate() {
        return loanRate;
    }

    public void setLoanRate(Double loanRate) {
        this.loanRate = loanRate;
    }

    public String getRepaymentPeriod() {
        return repaymentPeriod;
    }

    public void setRepaymentPeriod(String repaymentPeriod) {
        this.repaymentPeriod = repaymentPeriod == null ? null : repaymentPeriod.trim();
    }

    public String getRepaymentMode() {
        return repaymentMode;
    }

    public void setRepaymentMode(String repaymentMode) {
        this.repaymentMode = repaymentMode == null ? null : repaymentMode.trim();
    }

    public Double getMinBid() {
        return minBid;
    }

    public void setMinBid(Double minBid) {
        this.minBid = minBid;
    }

    public String getBiddingDays() {
        return biddingDays;
    }

    public void setBiddingDays(String biddingDays) {
        this.biddingDays = biddingDays == null ? null : biddingDays.trim();
    }

    public String getLoanTitle() {
        return loanTitle;
    }

    public void setLoanTitle(String loanTitle) {
        this.loanTitle = loanTitle == null ? null : loanTitle.trim();
    }

    public String getLoanDesc() {
        return loanDesc;
    }

    public void setLoanDesc(String loanDesc) {
        this.loanDesc = loanDesc == null ? null : loanDesc.trim();
    }

    public Integer getReviewStatus() {
        return reviewStatus;
    }

    public void setReviewStatus(Integer reviewStatus) {
        this.reviewStatus = reviewStatus;
    }

    public String getReviewNote() {
        return reviewNote;
    }

    public void setReviewNote(String reviewNote) {
        this.reviewNote = reviewNote;
    }
}